import service from "../../server/request";

// export function getAllOrder(data:any) {
//   return service({
//     url: "/order/all/xyz",
//     method: "get",
//     params: data,
//   });
// }

export function getEvaluateByJwt(data: any) {
  return service({
    url: "/evaluate/jwt",
    method: "get",
    params: data,
  });
}

export function createEvaluateByJwt(data: any) {
  return service({
    url: "/evaluate/jwt",
    method: "post",
    params: data,
  });
}

export function getEvaluateById(data: any) {
  return service({
    url: "/evaluate/id",
    method: "get",
    params: data,
  });
}

export function getEvaluateByOrderId(data: any) {
  return service({
    url: "/evaluate/orderId",
    method: "get",
    params: data,
  });
}

export function updateEvaluateByIdAndJwt(data: any) {
  return service({
    url: "/evaluate/jwt/id",
    method: "put",
    params: data,
  });
}

export function deleteEvaluateByIdAndJwt(data: any) {
  return service({
    url: "/evaluate/jwt/id",
    method: "delete",
    params: data,
  });
}

export function getEvaluateByShopId(data: any) {
  return service({
    url: "/evaluate/shopId",
    method: "get",
    params: data,
  });
}

